package com.gitee.flwwsg.rpc.server;

import com.gitee.flwwsg.rcp.service.AdditionService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class AdditionServiceImpl implements AdditionService {
    private static final Logger logger = LoggerFactory.getLogger(HelloServiceImpl.class);

    @Override
    public Integer add(Integer a) {
        logger.info("received {}\n", a);
        Integer res = a + 1;
        logger.info("result is {}\n", res);
        return res;
    }
}
